package com.demo2do.boyle.client.service;

import java.util.List;

import com.demo2do.boyle.common.entity.customer.CustomerTag;
import com.demo2do.boyle.common.entity.system.tag.Tag;
import com.demo2do.core.service.GenericService;

/**
 * 
 * @author Wilson
 */
public interface CustomerTagService extends GenericService<CustomerTag> {

    /**
     * 
     * @param tagCodes
     * @return
     */
	public List<Tag> listCustomerLifeTag(List<Integer> tagCodes);
    
	/**
	 * 
	 * @param tagCodes
	 * @return
	 */
	public List<Tag> listCustomerInterestTag(List<Integer> tagCodes);
	
	
/**
 * check if already exist, if no, then save, otherwise fail
 */
	/**
     * add tag
     * 
     * @param customerTag
     * @return
     */
    public CustomerTag addLifeTag(Integer id, int code);
    
    
    /**
     * add tag
     * 
     * @param customerTag
     * @return
     */
    public CustomerTag addInterestTag(Integer id, int code);

    /**
     * delete tag
     * 
     * @param customerTag
     * @return
     */
    public CustomerTag deleteLifeTag(Integer id, int code);
    
    /**
     * delete tag
     * 
     * @param customerTag
     * @return
     */
    public CustomerTag deleteIntergestTag(Integer id, int code);
    
    /**
     * 
     * @param id
     * @param code
     */
    public void updateSex(Integer id, int code);
    
    /**
     * 
     * @param id
     * @param code
     */
    public void updateAge(Integer id, int code);
    
    /**
     * 
     * @param id
     * @param code
     */
    public void updateArea(Integer id, int code);

}
